// LBCLuaPlugin_Common.cpp : Defines the entry point for the DLL application.
//

#include "stdafx.h"
#include "LBCLuaPlugin_Common.h"

#include "LBCLuaPlugin_CommonImpl.h"
#include "LBCPluginMgrDefine.h"

BOOL APIENTRY DllMain( HANDLE hModule, 
                       DWORD  ul_reason_for_call, 
                       LPVOID lpReserved
					 )
{
    switch (ul_reason_for_call)
	{
		case DLL_PROCESS_ATTACH:
		case DLL_THREAD_ATTACH:
		case DLL_THREAD_DETACH:
		case DLL_PROCESS_DETACH:
			break;
    }
    return TRUE;
}


// {8CF59C00-EE32-4558-A85F-FEA2AA21F1C7}
static const GUID GUID_COMMON = 
{ 0x8cf59c00, 0xee32, 0x4558, { 0xa8, 0x5f, 0xfe, 0xa2, 0xaa, 0x21, 0xf1, 0xc7 } };

int __stdcall QueryInterface( REFIID riid, void** pp )
{
	if (GUID_COMMON==riid)
	{
		*pp = static_cast<I_LBCLuaPlugin*>(LBCLuaPlugin_CommonImpl::CreateInstance());
		return SD_PLUGIN_RET_SUC;
	}
	
	return SD_PLUGIN_RET_ERR;
}
